package org.osprey.apidoc.common;

import io.vertx.core.Handler;
import io.vertx.core.http.HttpMethod;
import io.vertx.ext.web.RoutingContext;
import lombok.Data;

/**
 * @ClassName ApiHandler
 * @Description:
 * @Author Osprey
 * @Date 2019/10/16
 * @Version V2.0
 **/
@Data
public class ApiHandler {
    private HttpMethod httpMethod;

    private String api;

    private Handler<RoutingContext> handler;

    public ApiHandler(HttpMethod httpMethod, String api, Handler<RoutingContext> handler) {
        this.httpMethod = httpMethod;
        this.api = api;
        this.handler = handler;
    }
}
